package com.aliwo.design.patterns.status.ext1;

/**
 * @author xuyayuan
 * @description 没有使用状态模式的测试代码
 * @date 2021/9/18 16:03
 */
public class DemoTest {
    public static void main(String[] args) {
        Person person = new Person();
        person.setHour(7);
        person.doSomething();

        Person person1 = new Person();
        person1.setHour(12);
        person1.doSomething();

        Person person2 = new Person();
        person2.setHour(19);
        person2.doSomething();

    }
}
